package com.itheima.dao;


import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoleDao {

    public Set<Role> findRolesByUserId(int id);

    Page<Role> findByPage(String queryString);

    List<Menu> findAllMenu();

    List<Integer> findCheckitemIdsByUsername(String username);

    void deleteByRoleName(String username);

    int findRoleId(String username);

    void insert(Map<String, Object> map);
}
